<template>
    <view class="uam-head">
        <view class="uam-head-icom">
            <button @tap="fabulous" class="iconfont icon-fabulous"></button>
			<button @tap="download" class="iconfont icon-download"></button>
        </view>
        <view class="uam-head-text">{{ title }}</view>
    </view>
</template>

<script>
export default {
    name: "uamhead",
    data() {
        return {};
    },
    props: ['title'],
    methods: {
        download() {
            uni.switchTab({
                url: '/pages/index/index'
            });
        },
        fabulous() {
            uni.switchTab({
                url: '/pages/list/list'
            });
        }
    }
};
</script>

<style scoped>
.uam-head {
    position: relative;
}

.uam-head-icom {
    display: flex;
    justify-content: flex-start; /* 修改为左对齐 */
    align-items: flex-start;
}
</style>    